#include <iostream>

using namespace std;

int main()
{
    unsigned long int a1 = 108;
    cout << "Please input a number: ";
    scanf("%lu", &a1);
    printf("%lo\n", a1);
    printf("%lX\n", a1);
    // cout << oct << a1 << endl;
    // cout << hex << a1 << endl;

    printf("\nNext stage 1\n");
    char c1[] = ""; //加上 = "" 以免报错, 好像不能是 string
    sprintf(c1, "Convert int to char []: %d", 123);
    cout << c1 << endl;
}
